#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

int main()
{
    int N, a = 0, b = 1, c;
    cin >> N;
    for (int i = 0; i < N; i++)
    {
        cout << a << ' ';
        c = a + b;
        a = b;
        b = c;
    }
    return 0;
}